//
//  SDKLoader.swift
//  hrhtv
//
//  Created by Ink on 2024-09-29.
//

import MJRefresh
import Lottie

public class SDKLoader: NSObject {
    public static var `share` = SDKLoader()
    
    public var noMoreTttle: String = "No more data"
    
    public var customToastImageView: UIImageView? {
        set {
            mUtilMap["customToastImageView"] = newValue
        }
        get {
            mUtilMap["customToastImageView"] as? UIImageView
        }
    }
    
    public var customToastLottieView: UIView? {
        let view = LottieAnimationView(name: "RefreshLoadIng") // 替换为你的文件名
        view.contentMode = .scaleAspectFit
        view.loopMode = .loop
        view.snp.makeConstraints { make in
            make.width.height.equalTo(44)
        }
        view.play()
        return view
    }
}


public extension Bundle {
    class var vsdk: Bundle {
        Bundle(for: SDKLoader.self)
    }
}
